package com.panshi.service;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.panshi.model.CommonInfo;

import java.util.List;

public class CommonInfoService {


    /**
     * 获取全部的基础数据
     * @param data
     * @return
     */
        public Record getCommonProperties(Record data)
        {

           Db.find("select title,value  from ot_app_common_info");

//            for (CommonInfo commonInfo :commonInfos)
//            {
//                data.set(commonInfo.getTitle(),commonInfo.getValue());
//
//            }
            return data;
        }



}
